<html jwcid="@Shell" title="Results">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Services</title>

        <link jwcid="@Style" href="info.css" media="all"/>

    </head>
    <body jwcid="@Body">

        <table width="100%" border="1">
            <tr>

                <td width="90%">
                    <span jwcid="@Phones"/>
                </td>

                <td width="10%" align="center">
                    <span jwcid="@ChargeButton" serviceID="ognl:@ge.info.pages.OrgResultPage@SERVICE_ID"></span>
                </td>
            </tr>
        </table>
        <br>

        <input jwcid="@Errors" exceptions='ognl:exceptions'/>

        <br>

            <div style="overflow:auto; height:500px">

        <span jwcid="@If" condition="ognl:organization.master!=null">



            <a jwcid="@DirectLink" listener="listener:openMainResultPage" parameters="ognl:organization.master.stringTwo">
                <span jwcid="@Insert" value="ognl:organization.master.stringOne"></span>
            </a>
        </span>
        <br>
        <br>

        <table border="0"  cellspacing="0" bordercolor="#000000" width="80%">
            <tr>
                <td width="25%">
                    <b>
                        <input jwcid="@Insert" value='ognl:organization.name'/>
                    </b>
                </td>
                <td width="40%">
                    &nbsp;&nbsp
                    <span jwcid="@If" condition="ognl:organization.address!=null">
                        <span jwcid="@If" condition="ognl:organization.address.hidden==0">
                            <b>
                                <input jwcid="@Insert" value='ognl:page.getComboes().getCombo("CitiesAll").getLabelFromPk(organization.address.cityID)'/>
                                <input jwcid="@Insert" value="ognl:organization.address.streetName"/>
                                <input jwcid="@Insert" value="ognl:organization.address.suffix"/>
                            </b>
                        </span>
                        <span jwcid="@Else">
                            მონაცემი დაფარულია
                        </span>
                    </span>
                    &nbsp;&nbsp
                </td>
                  <td width="25%">
                    <b>
                        <input jwcid="@Insert" value='ognl:organization.nameeng'/>
                    </b>
                </td>
                <td width="10%">
            <a jwcid="@DirectLink" listener="listener:OpenOrgResultInfo" parameters="ognl:organization.mainID">დამატებითი ინფორმაცია </a>
            </td>
            </tr>
        </table>
        <br><br>

        <div style="overflow:auto; height:250px">
            <form jwcid="@Form">

                <table border="1" bgcolor="#FFFFFF" width="100%">
                    <span jwcid="@For" source="ognl:organization.details" value="ognl:detail">
                        <tr jwcid="@Any" bgcolor='ognl:(detail.mainDetailMasterID!=0)?"#FFFFFF":"#DFDFDF"'>
                            <td width="4%">
                                <input type="Submit" jwcid="@Submit" parameters="ognl:detail" value="SMS" style="width: 35px" action="listener:sendSMS"/>
                            </td>
                            <td width="33%">
                                <span jwcid="@If" condition="ognl:detail.mainDetailMasterID!=0">
                                    &nbsp;&nbsp;
                                    <input jwcid="@Insert" value='ognl:detail.mainDetail'/>
                                </span>
                                <span jwcid="@Else">
                                    <b>
                                        <input jwcid="@Insert" value='ognl:detail.mainDetail'/>
                                    </b>
                                </span>
                            </td>
                            <td width="48%">
                                <font color="red">
                                    <input jwcid="@Insert" value="ognl:detail.contactPhones"/>&nbsp;
                                </font>
                                <input jwcid="@Insert" value="ognl:detail.phones"/>
                            </td>
                            <td width="15%">
                                <input jwcid="@Insert" value="ognl:detail.note"/>&nbsp;
                            </td>
                        </tr>
                    </span>
                </table>
            </form>
        </div>
        <br><br>
        <table border="1" width="90%">


            <tr>

                <td height="5">
                  <span jwcid="@If" condition="ognl:organization.notecrit==0">
                      <input jwcid="@Insert" value="ognl:organization.note"/>
                                 </span>

                <span jwcid="@Else">
                      <font color="red">
                    <input jwcid="@Insert" value="ognl:organization.note"/>
                </font>
                </span>
                </td>
            </tr>
        </table>
                
        <br/>
        <hr/>
        <hr/>
       <br/>
        <span jwcid="@If" condition="ognl:organization.slaves!=null">
            <table border="1">
            <span jwcid="@For" source="ognl:organization.slaves" value="ognl:slave">
                <table border="1"  cellspacing="0" bordercolor="#000000" width="100%">
                    <tr>
                        <!--td width="37%" -->

                            <span jwcid="@If" condition="ognl:slave.statuse==1">
                        <td bgcolor="#C38EC7" width="37%">
                            <b>
                                <a jwcid="@DirectLink" listener="listener:openOrgResultPage" parameters="ognl:slave.mainID">
                                    <span jwcid="@Insert" value="ognl:slave.name"></span>
                                </a>
                            </b>
                        </td>
                    </span>
                    <span jwcid="@Else">
                        <span jwcid="@If" condition="ognl:slave.statuse==2">
                            <td bgcolor="#747170" width="37%">
                                <b>
                                <a jwcid="@DirectLink" listener="listener:openOrgResultPage" parameters="ognl:slave.mainID">
                                    <span jwcid="@Insert" value="ognl:slave.name"></span>
                                </a>
                            </b>
                            </td>
                        </span>
                        <span jwcid="@Else">
                            <td width="37%">
                                <b>
                                <a jwcid="@DirectLink" listener="listener:openOrgResultPage" parameters="ognl:slave.mainID">
                                    <span jwcid="@Insert" value="ognl:slave.name"></span>
                                </a>
                            </b>
                            </td>
                        </span>
                    </span>


                            <!-- b>
                                <a jwcid="@DirectLink" listener="listener:openOrgResultPage" parameters="ognl:slave.mainID">
                                    <span jwcid="@Insert" value="ognl:slave.name"></span>
                                </a>
                            </b -->
                        <!--/td -->
                        <td width="48%">
                            &nbsp;&nbsp
                            <span jwcid="@If" condition="ognl:slave.address!=null">
                                <span jwcid="@If" condition="ognl:slave.address.hidden==0">
                                    <b>
                                        <input jwcid="@Insert" value='ognl:page.getComboes().getCombo("CitiesAll").getLabelFromPk(slave.address.cityID)'/>
                                        <input jwcid="@Insert" value="ognl:slave.address.streetName"/>
                                        <input jwcid="@Insert" value="ognl:slave.address.suffix"/>
                                    </b>
                                </span>
                                <span jwcid="@Else">
                                    მონაცემი დაფარულია
                                </span>
                            </span>
                            &nbsp;&nbsp
                        </td>
                         <td width="15%">
                                       &nbsp;&nbsp;
                                    </td>
                    </tr>
                </table>



                <!--div style="overflow:auto; height:125px" -->
                    <form jwcid="@Form">

                        <table border="1" bgcolor="#FFFFFF" width="100%">
                            <span jwcid="@For" source="ognl:slave.details" value="ognl:detail">
                                <tr jwcid="@Any" bgcolor='ognl:(detail.mainDetailMasterID!=0)?"#FFFFFF":"#DFDFDF"'>
                                    <td width="4%">
                                        <!-- input type="Submit" jwcid="@Submit" parameters="ognl:detail" value="SMS" style="width: 35px" action="listener:sendSMS"/ -->
                                    &nbsp;&nbsp;
                                    </td>
                                    <td width="33%">
                                        <span jwcid="@If" condition="ognl:detail.mainDetailMasterID!=0">
                                            &nbsp;&nbsp;
                                            <input jwcid="@Insert" value='ognl:detail.mainDetail'/>
                                        </span>
                                        <span jwcid="@Else">
                                            <b>
                                                <input jwcid="@Insert" value='ognl:detail.mainDetail'/>
                                            </b>
                                        </span>
                                    </td>
                                    <td width="48%">
                                        <font color="red">
                                            <input jwcid="@Insert" value="ognl:detail.contactPhones"/>&nbsp;
                                        </font>
                                        <input jwcid="@Insert" value="ognl:detail.phones"/>
                                    </td>
                                    <td width="15%">
                                        <input jwcid="@Insert" value="ognl:detail.note"/>&nbsp;
                                    </td>
                                </tr>
                            </span>
                        </table>
                    </form>
                <!-- /div -->
            </span>
            </table>
        </span>

            </div>
    
    </body>
</html>